// src/hooks/use-channel-id.ts
import {useParams} from "next/navigation";

// 客户端获取params参数 (/xxx/[id] -> params.id)
export const useChannelId = () => {
    const params = useParams()
    return params.channelId as string
}